﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LCTMoodle.Models;
using System.IO;

namespace LCTMoodle.Controllers
{
    public class SharedController : Controller
    {
        public JsonResult HienTrang()
        {
            int[] boDem = (int[])HttpContext.Application["BoDem"];
            return Json(new 
                { 
                    trangThai = "OK", 
                    khach = boDem[0].ToString(), 
                    thanhVien = boDem[1].ToString(), 
                    truyCap = boDem[2].ToString() 
                });
        }
    }
}
